<?php 
 	require_once '../config.php';
   	$login = new Login();	//Creacion objeto login(constructor vacio crea objeto conexion)
   	$error=' ';
   	if(isset($_POST['username']) && isset($_POST['password'])){		//Si existe usuario...
   		$login->inicia($_POST['username'],$_POST['password']);
   		$error=$login->error;
   	}
   	else{
   		$error=$login->error;
   	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="es">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />	
	<link href="<?php echo $URL_ESTILOS ?>/jquery-ui.css" rel="stylesheet" type="text/css" media="screen" />
	<link href="<?php echo $URL_ESTILOS ?>/transdmin.css" rel="stylesheet" type="text/css" media="screen" />
	<link href="<?php echo $URL_ESTILOS ?>/hack.css" rel="stylesheet" type="text/css" media="screen" />
	<link href="<?php echo $URL_ESTILOS ?>/cas.css" type="text/css" rel="stylesheet" />
	
	<!-- JavaScripts-->
	<script src="<?php echo $URL_JS ?>/jquery-1.9.0.js" type="text/javascript" ></script>
	<script src="<?php echo $URL_JS ?>/jquery-ui.js" type="text/javascript" ></script>
	<script src="<?php echo $URL_JS ?>/jquery.nice-file-input.min.js" type="text/javascript"></script>
	<script src="<?php echo $URL_JS ?>/interfaz.js" type="text/javascript" ></script>
    <title>Login/Catunamb&uacute;</title>
</head>
<body id="cas">
    <?php include_once 'LoginErrores.php'; ?>
	<div id="content">
		<a class="enlace_catunambu" >
 			<img src="../Imagenes/inter-logo.png" alt="" id="imagLogo" />
 		</a>
  		<div class="box fl-panel" id="login">
			<form id="fm1" action="Logueo.php" method="post">
	            <div class="row">
					<div>
						<input id="username" name="username" class="required" type="text" value=""/>
						<div class="div_usu_form"></div>
					</div>
				</div>
	            <div class="row">
					<div>
						<input id="password" name="password" class="required" type="password" value="" />
	                    <div class="div_pass_form"></div>
	               </div>
	          	</div>
	            <div class="row btn-row">
					<input class="btn-submit" name="submit" value="LOGIN" type="submit" />
	            </div>
            </form>
    	</div>          
	</div>
</body>
</html>
